package bean;

import java.text.MessageFormat;
import java.util.Enumeration;

import javax.print.attribute.HashPrintRequestAttributeSet;
import javax.print.attribute.PrintRequestAttributeSet;
import javax.print.attribute.standard.MediaPrintableArea;
import javax.print.attribute.standard.MediaSize;
import javax.swing.text.AttributeSet;
import javax.swing.text.MutableAttributeSet;
import javax.swing.text.StyleConstants;
import javax.swing.text.StyleConstants.FontConstants;

public class PrintingAttributeSet{
	public static PrintRequestAttributeSet getPrintingAttributeSet()
	{
		PrintRequestAttributeSet attr_set = new HashPrintRequestAttributeSet();
		float[] size = MediaSize.ISO.A4.getSize(MediaSize.INCH);
		attr_set.add(new MediaPrintableArea(1.0f, 2.5f, size[0] - 2.0f, size[1] - 4.0f, MediaPrintableArea.INCH));
		return attr_set;
	}
}
